package cn.tedu.controller;

import cn.tedu.pojo.User;
import cn.tedu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Controller
@RequestMapping("a")
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping("b")
    public List<User> selectList() {

        return userService.selectList();
    }
}
